import asIp from '@/filters/formats/ip'
import { nullDisplay } from '../utils'

// 组件设置
export default {
  props: {
    value: [String, Number],
    options: Object
  },
  render(h) {
    if (this.value === null) {
      return nullDisplay(h, this.options)
    }
    return h('div', {}, asIp(this.value))
  }
}
